package logic

import (
	"context"
	"travel-app/common/proto/user"
	"travel-app/rpc/sever"
)

type ServiceUser struct {
	user.UnimplementedUserServer
}

func (s ServiceUser) Register(ctx context.Context, in *user.RegisterReq) (*user.RegisterResp, error) {
	login, err := sever.Register(in)
	if err != nil {
		return nil, err
	}
	return login, nil
}
func (s ServiceUser) Login(ctx context.Context, in *user.LoginReq) (*user.LoginResp, error) {
	login, err := sever.Login(in)
	if err != nil {
		return nil, err
	}
	return login, nil
}
func (s ServiceUser) UserReal(ctx context.Context, in *user.UserRealReq) (*user.UserRealResp, error) {
	login, err := sever.UserReal(in)
	if err != nil {
		return nil, err
	}
	return login, nil
}
